//
//  CategoryCollectionReusableView.m
//  14-HomeWork-礼物说
//
//  Created by dllo on 16/8/2.
//  Copyright © 2016年 DM.C. All rights reserved.
//

#import "CategoryCollectionReusableView.h"

@implementation CategoryCollectionReusableView
- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        _label_title = [[UILabel alloc] initWithFrame:CGRectMake(10, 0, 40, 50)];
        _label_title.text = @"品类";
        _label_title.font = [UIFont systemFontOfSize:20];
        _label_title.textColor = [UIColor lightGrayColor];
        
        _button_checkAll = [UIButton buttonWithType:UIButtonTypeSystem];
        _button_checkAll.frame = CGRectMake(CGRectGetWidth(frame) / 2 + 100, 0, 100, 50);
        [_button_checkAll setTitle:@"查看全部 >" forState:UIControlStateNormal];
        _button_checkAll.titleLabel.font = [UIFont systemFontOfSize:19];
        [_button_checkAll setTintColor:[UIColor colorWithWhite:0.400 alpha:1.000]];
        [self addSubview:_label_title];
        [self addSubview:_button_checkAll];
    }
    return self;
}
@end
